<?php
/**
 * Joomla! 1.5 component wbdatabase
 *
 * @version $Id: wbdatabase.php 2009-04-09 16:20:44 svn $
 * @author woomla
 * @package Joomla
 * @subpackage wbdatabase
 * @license GNU/GPL
 *
 * A personal database with some fields to remember logins and pin codes.
 *
 * This component file was created using the Joomla Component Creator by Not Web Design
 * http://www.notwebdesign.com/joomla_component_creator/
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Import Joomla! libraries
jimport('joomla.application.component.model');

class WbdatabaseModelDefault extends JModel 
{
  var $_data;

  function __construct() 
  {
    parent::__construct();
  }
  
  function _buildQuery()
  {
    $query = 'SELECT * FROM #__wbdatabase';
    return $query;
  }

  
  function getData()
  {
    if (empty($this->_data))
    {
      $query = $this->_buildQuery();
      $this->_data = $this->_getList($query);
    }
    return $this->_data;    
  }
}
?>